import { v4 as uuidv4 } from 'uuid'
export default function () {
    let uuid = localStorage.getItem("sph_uuid")
    if(!uuid){
        //生成一个uuid 塞到localStorage中
        uuid = uuidv4()
        localStorage.setItem("sph_uuid",uuid)
    }
    return uuid
}
